package com.kkb.kkbauth.constant;

import lombok.Data;
import org.springframework.core.io.ClassPathResource;
import org.springframework.security.oauth2.provider.token.store.KeyStoreKeyFactory;

import java.io.IOException;

/**
 * @author syt
 */
@Data
public class KeyUtil {

    /**
     * 证书文件
     */
    public static final String KEY_LOCATION = "kkb_certificate.jks";
    //
    /**
     * 密钥库密码
     */
    public static final String KEY_STORE_PASSWORD = "kkb123456";
    /**
     * 密钥的密码，此密码和别名要匹配
     */
    public static final String KEY_PASSWORD = "kkb123456";
    /**
     * 密钥别名
     */
    public static final String KEY_ALIAS = "kkb";
}
